<?php
//load header 
$this->load->view('/School/school_head');

?>

<div id="content">

	<p>	
	<?php 
	//echo $text_lnk2;
	echo '<br \>';
	?>
	</p>
	
	
	
	<div id="calendar">
	</div>
	
		
</div>


<script type="text/javascript">

function showDialog() {

	$("#errorDialog").dialog(
		{
			width:		200,
			height:		150,
			show: 		'fade',
			hide: 		'fade',
			buttons: {

				// send the data to be stored in the DB
				"Ok": 		
				function() {
					$(this).dialog("close");
				},

				// Operation canceled
				"Cancel": 	
				function() {
					$(this).dialog("close");
				}
			}
		}	
	);
	
	
}


function tmp() {
	var tmp = $("#offerList option:selected").val();
	alert(tmp);
}


$(document).ready(function() {
	$("#testButton").click(function() {		
		//alert('hello');
		tmp();
		//showDialog();
	});
	
	
});




</script>




<div id="myDialog" title="this is the title">
	<p>Show offer</p>
	<select id="offerList">
	</select>
	<p class="availableOffers"></p>
</div>

<div id="errorDialog" title="error">
<p> error ...</p>
</div>

<button id="testButton">test</button>

<?php
//load footer 
$this->load->view('/School/school_footer');


